home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-01 / wtek0693.zip / OOPALLEY.ZIP / LINK.CPP < prev    next >
C/C++ Source or Header  |  1993-04-27  |  451b  |  20 lines

  1. #include "Link.h"
  2.  
  3. #define THIS    Link
  4. #define BASE    Object
  5. DEFINE_CLASS(Link,Object);
  6.  
  7. Link::~Link()
  8. {
  9.     if (next != (Link*)nil)
  10.         //DTerror("OOPS_DELLNK,DEFAULT,className(),next,this",className());
  11.         DTerror("Attempt to delete object with non-nil next ",className());
  12. }
  13.  
  14. void Link::deepenShallowCopy()
  15. {
  16.     next = (Link*)nil;
  17. }
  18.  
  19. Object* Link::shallowCopy() const { shouldNotImplement("shallowCopy"); return 0; }
  20.